#
# Be sure to run `pod lib lint ZXMBProgressHUD.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ZXMBProgressHUD'
  s.version          = '0.1.6'
  s.summary          = '基于MBProgressHUD的二次封装。此SDK的优点：1）做了loading防止重复加载处理，2) 支持iOS13 SDK的UIWindowScene；3)支持toast展示时间根据文本长度动态计算。再配置最小显示持续时间1.5s；再限制最大展示时间6s；4)支持线程安全等'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
  'MBProgressHUD的二次封装。此SDK的优点：\n1）window处理，其它二封的库普遍用keyWindow，其实会有bug，keyWindow有时候会被意外改变，导致无法展示HUD，或者无法移除HUD。\n2）做了loading防止重复加载处理，如果当前正在loading，新加载的loading直接用当前loading的UI，只修改文本。\n3) 支持iOS13 SDK的UIWindowScene；\n4) 配置了：显示loading的宽限时间,0.1s；\n5)支持toast展示时间根据文本长度动态计算。再配置最小显示持续时间1.5s；再限制最大展示时间6s；\n6)支持completionBlock隐藏移除时的block回调；有些业务需要隐藏后再处理其它事件。\n7)支持线程安全，即使子线程调用也会提交到主线程队列执行不会崩溃。'
                       DESC

  s.homepage         = 'https://gitee.com/zj1208/ZXMBProgressHUD'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '海参' => '879654715@qq.com' }
  s.source           = { :git => 'https://gitee.com/zj1208/ZXMBProgressHUD.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'

  s.source_files = 'ZXMBProgressHUD/Classes/**/*'
#  s.public_header_files = "ZXMBProgressHUD/Classes/ZXMBProgressHUD.h"

  # s.resource_bundles = {
  #   'ZXMBProgressHUD' => ['ZXMBProgressHUD/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
   s.dependency 'MBProgressHUD'
end
